package io.ionic.starter;

import android.widget.Toast;

import com.getcapacitor.JSObject;
import com.getcapacitor.NativePlugin;
import com.getcapacitor.Plugin;
import com.getcapacitor.PluginCall;
import com.getcapacitor.PluginMethod;

@NativePlugin()
public class Navigation extends Plugin {

    @PluginMethod()
    public void echo(PluginCall call) {
        String value = call.getString("value");
        Toast.makeText(getContext(),value,Toast.LENGTH_LONG).show();
        JSObject ret = new JSObject();
        ret.put("value", value);
        call.success(ret);
    }
}
